{include file="pub/header" /}
	<div class="body"> 
		<div class="nav">
			添加文章
		</div>
		<div class="tap">
			<span class="active">添加文章</span>
		</div>
		<div class="from">
			<form action="" class="active" method="post" enctype="multipart/form-data">
				<div class="p">
					<label>
						<span class="span">小程序</span>
						<select name="xcx_id">
								<option value="50">群玩助手new</option>
								<option value="98">迷你世界杯</option>
								<option value="99">迷你足球to大侦探</option>
						</select>
						<input type="text" name="search">
					</label>
				</div>
				<div class="p">
					<label>
						<span class="span">日期</span>
						<input type="text" name="time" id="time" value="2018-06-19">
						<script type="text/javascript" src="/static/laydate/laydate.js"></script>
						<!-- 实例化编辑器 -->
						<script type="text/javascript">
							laydate.render({
								elem: '#time',
								calendar: true
							});
						</script>
					</label>
				</div>
				<div class="p">
					<label>
						<span class="span">宜</span>
						<i class="iconfont add fit">&#xe603;</i>
					</label>
				</div>
				<div id="fit">
					<div class="p">
						<label> 
							<span class="span">小标题1</span> 
							<input type="text" name="fit_title[]">
						</label>
						
						<label>
							<span class="span">内容</span> 
							<input type="text" name="fit_info[]">
						</label>
						<label>
							<button class="remove">删除</button>
						</label>
					</div>
				</div>
				<div class="p">
					<label>
						<span class="span">忌</span>
						<i class="iconfont add ban">&#xe603;</i>
					</label>
				</div>
				<div id="ban">
					<div class="p">
						<label> 
							<span class="span">小标题1</span> 
							<input type="text" name="ban_title[]">
						</label>
						
						<label>
							<span class="span">内容</span> 
							<input type="text" name="ban_info[]">
						</label>
						<label>
							<button class="remove">删除</button>
						</label>
					</div>
				</div>
				<div class="p">
					<label>
						<span class="span">宜</span>
						<i class="iconfont add bottom_info">&#xe603;</i>
					</label>
				</div>
				<div id="bottom_info">
					<div class="p">
						<label> 
							<span class="span">小标题1</span> 
							<input type="text" name="bottom_title[]">
						</label>
						
						<label>
							<span class="span">内容</span> 
							<input type="text" name="bottom_info[]">
						</label>
						<label>
							<button class="remove">删除</button>
						</label>
					</div>
				</div>
				<script>
				$(".fit").click(function(){
					var length = $("input[name='fit_title[]']").length;
					var html = '<div class="p"> <label>  <span class="span">小标题' + (length + 1) +'</span>  <input type="text" name="fit_title[]"> </label> <label> <span class="span">内容</span>  <input type="text" name="fit_info[]"> </label> <label> <button class="remove">删除</button> </label> </div>';
					$("#fit").append(html);
				});	

				$(".ban").click(function(){
					var length = $("input[name='ban_title[]']").length;
					var html = '<div class="p"> <label>  <span class="span">小标题' + (length + 1) +'</span>  <input type="text" name="ban_title[]"> </label> <label> <span class="span">内容</span>  <input type="text" name="ban_info[]"> </label> <label> <button class="remove">删除</button> </label> </div>';
					$("#ban").append(html);
				});	

				$(".bottom_info").click(function(){
					var length = $("input[name='bottom_title[]']").length;
					var html = '<div class="p"> <label>  <span class="span">小标题' + (length + 1) +'</span>  <input type="text" name="bottom_title[]"> </label> <label> <span class="span">内容</span>  <input type="text" name="bottom_info[]"> </label> <label> <button class="remove">删除</button> </label> </div>';
					$("#bottom_info").append(html);
				});	
				</script>
				<div class="p">
					<label>
						<input type="submit" value="提交">
					</label>
				</div>
			</form>
		</div>
	</div>
{include file="pub/footer" /}
